package com.ruoyi.qd.vo;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class TradeWaterAddReq {
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @NotNull(message = "交易金额不能为空")
    @DecimalMin(value = "0.01", message = "交易金额必须大于0.01")
    private BigDecimal amount;

    @NotNull(message = "交易类型不能为空")
    private String type;
}
